package cn.thornbird.orgsync.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table(name = "companies")
@Where(clause = "deleted_at is null")
public class Company extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -3417503298880916700L;

    @Column(name = "name")
    private String name;

    @Column(name = "city_id")
    private String cityId;

    @Column(name = "active")
    private Boolean active;

    @Column(name = "logo")
    private String logo;

    @Column(name = "address")
    private String address;

    @Column(name = "website")
    private String website;

    @Column(name = "email")
    private String email;

    @Column(name = "telephone")
    private String telephone;

    @Column(name = "remark")
    private String remark;

}
